import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import {createRouter} from "./router/index.js";

//导入pinia
import { createPinia } from 'pinia'

//导入pinia 持久化 插件
import piniaPersist from 'pinia-plugin-persist'
//实例化pinia
const pinia = createPinia()
pinia.use(piniaPersist) // 将pinia 和 piniaPersist持久化插件 绑定

//导入Vant组件库
import Vant from 'vant'
import 'vant/lib/index.css';



createApp(App)
    .use(Vant)
    .use(createRouter())
    .use(pinia)
    .mount('#app')
